import request from '@/utils/request'

// 查询极客补发小程序售后服务列表
export function listHairAfterSale(query) {
  return request({
    url: '/system/hairAfterSale/list',
    method: 'get',
    params: query
  })
}

// 查询极客补发小程序售后服务详细
export function getHairAfterSale(id) {
  return request({
    url: '/system/hairAfterSale/' + id,
    method: 'get'
  })
}

// 新增极客补发小程序售后服务
export function addHairAfterSale(data) {
  return request({
    url: '/system/hairAfterSale',
    method: 'post',
    data: data
  })
}

// 修改极客补发小程序售后服务
export function updateHairAfterSale(data) {
  return request({
    url: '/system/hairAfterSale',
    method: 'put',
    data: data
  })
}

// 删除极客补发小程序售后服务
export function delHairAfterSale(id) {
  return request({
    url: '/system/hairAfterSale/' + id,
    method: 'delete'
  })
}
